package io.wen.bd.s8m1;

import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class Task4_FlinkParallelism {
    public static void main(String[] args) throws Exception {
        final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);
        //env.setParallelism(2);
        final DataStream<String> socketStream = env.socketTextStream("hadoop03", 9999);
        socketStream.print();
        env.execute();
    }
}
